{% extends "content_view.html" %}

{% load i18n inlinetrans %}

{% block beforecontentbreadcrumbs %}
  <span class="breadcrumbSeparator">→</span>
  <a href="{% url player_index %}" title="{% trans "Frisbillana' players" %}">{% inline_trans "Frisbillana' players" %}</a>
{% endblock %}

{% block contentdescription %}
  {% if content.sport_number %}
  <div class="field">
    <strong>{% inline_trans "Number" %}:</strong> {{ content.sport_number }}
  </div>
  {% endif %}
  {% if content.team_position %}
  <div class="field">
    <strong>{% inline_trans "Position" %}:</strong> {{ content.get_team_position_display }}
  </div>
  {% endif %}
  {% if content.birth_place %}
  <div class="field">
    <strong>{% inline_trans "Birth place" %}:</strong> {{ content.birth_place }}
  </div>
  {% endif %}

  {{ block.super }}
{% endblock %}

{% block contentbody %}
  <h2>{% inline_trans "Events attended" %}</h2>

  <ul>
  {% for event in content.event_attended.all %}
    <li><a href="{{ event.get_absolute_url }}" title="{{ event }}">{{ event }}</a></li>
  {% endfor %}
  </ul>
{% endblock %}